package com.ahora.org.ejb.jpa.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * The persistent class for the TB_DOCUMENTO_ADI_EXPEDIENTE database table.
 * 
 */
@Entity
@Table(name="TB_DOCUMENTO_ADI_EXPEDIENTE")
public class DocumentoAdiExpediente implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator = "SEC_DOCUMENTO_ADI_EXPEDIENTE")
	@SequenceGenerator(name="SEC_DOCUMENTO_ADI_EXPEDIENTE", sequenceName = "SEC_DOC_ADI_EXP")
	@Column(name="ID_DOCUMENTO_ADI_EXPEDIENTE")
	private int idDocumentoAdiExpediente;

	//bi-directional many-to-one association to EstadoGenerale
    @ManyToOne
	@JoinColumn(name="ID_DOCUMENTO_USUARIO")
	private DocumentoUsuario tbDocumentoUsuario;

	@Column(name="ID_ESTADO")
	private int idEstado;
	
	@ManyToOne
	@JoinColumn(name="ID_ACCION")
	private Accion tbAccion;
	
	//bi-directional many-to-one association to EstadoGenerale
    @ManyToOne
	@JoinColumn(name="ID_ESTADO_D_R_E")
	private EstadoGenerales tbEstadoGenerale;

	//bi-directional many-to-one association to Expediente
    @ManyToOne
	@JoinColumn(name="ID_EXPEDIENTE")
	private Expediente tbExpediente;

    public DocumentoAdiExpediente() {
    }

	public int getIdDocumentoAdiExpediente() {
		return this.idDocumentoAdiExpediente;
	}

	public void setIdDocumentoAdiExpediente(int idDocumentoAdiExpediente) {
		this.idDocumentoAdiExpediente = idDocumentoAdiExpediente;
	}

	public DocumentoUsuario getTbDocumentoUsuario() {
		return tbDocumentoUsuario;
	}

	public void setTbDocumentoUsuario(DocumentoUsuario tbDocumentoUsuario) {
		this.tbDocumentoUsuario = tbDocumentoUsuario;
	}

	public int getIdEstado() {
		return this.idEstado;
	}

	public void setIdEstado(int idEstado) {
		this.idEstado = idEstado;
	}

	public EstadoGenerales getTbEstadoGenerale() {
		return this.tbEstadoGenerale;
	}

	public void setTbEstadoGenerale(EstadoGenerales tbEstadoGenerale) {
		this.tbEstadoGenerale = tbEstadoGenerale;
	}
	
	public Expediente getTbExpediente() {
		return this.tbExpediente;
	}

	public void setTbExpediente(Expediente tbExpediente) {
		this.tbExpediente = tbExpediente;
	}

	public Accion getTbAccion() {
		return tbAccion;
	}

	public void setTbAccion(Accion tbAccion) {
		this.tbAccion = tbAccion;
	}


}